import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/ant-design-vue.js'
import './assets/css/global.css'
// 自定义类
import './assets/css/cssClasses.less'
import './assets/css/iconfont.css'

import'./components/dialog.js'

import myhttp from '@/plugins/http.js'
import qs from 'qs'
import moment from 'moment'
import store from './store'
import JsonExcel from 'vue-json-excel'
// import { ipcMain } from 'electron'
// var { ipcRenderer } = window.require("electron")
// Vue.use(ipcMain)
// const { ipcRenderer, remote } = require('electron');
// window.require("electron")
import globalRequestUrl from "./api/index.js";
Vue.prototype.globalRequestUrl = globalRequestUrl//挂载到Vue实例上面

import common from "./utils/commen.js";
Vue.prototype.$common = common  // 注册为全局变量
import Quill from 'quill'
var Align = Quill.import('attributors/style/align');
Align.whitelist = ['right', 'center', 'justify'];
Quill.register(Align, true);

import 'babel-polyfill'







Vue.use(myhttp)
Vue.component('downloadExcel', JsonExcel)
//vue-wechat-title动态改变页面顶部title
Vue.use(require('vue-wechat-title'))

//qs.stringify()将对象序列化成URL的形式，无需手动拼接，自动转化
Vue.prototype.qs = qs
Vue.prototype.moment = moment
Vue.config.productionTip = false
  
  
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
